﻿#region Copyrigth and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ezsocio
 * ==============================================================================*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace DusonFramework.ContactService.LiveID {
    /// <summary>
    /// LiveContractGroup用于描述msn联系人组
    /// </summary>
    [XmlNodeMapping(XmlNodeName = "Tags/Tag")]
    [DataContract]
    public class LiveContractGroup {
        #region Fields

        #endregion

        #region Constructors
        public LiveContractGroup() {
            this.ContractIDs = new List<string>();
            this.Contracts = new List<LiveContract>();
        }
        #endregion

        #region Properties
        /// <summary>
        /// 组编号
        /// </summary>
        [DataMember]
        [XmlNodeMapping(XmlNodeName = "ID")]
        public string ID {
            get;
            set;
        }
        /// <summary>
        /// 组名称
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "Name")]
        [DataMember]
        public string Name {
            get;
            set;
        }
        /// <summary>
        /// 组中的联系人列表
        /// </summary>
        [DataMember]
        public List<LiveContract> Contracts {
            get;
            set;
        }
        /// <summary>
        /// 组中联系人的编号集合
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "ContactIDs/ContactID/ID", IsCollection = true)]
        public List<string> ContractIDs {
            get;
            set;
        }
        #endregion

        #region Events

        #endregion
    }
}
